package com.dinglit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 169876809
 *  
 * @author qianzhang  
 * 
 * 2017-06-07 19:45:34
 *  
 * 其中@SpringBootApplication申明让spring boot自动给程序进行必要的配置，
 * 等价于以默认属性使用@Configuration，@EnableAutoConfiguration和@ComponentScan
 * 
 * 要将Application放在最外层，也就是要包含所有子包。
 */
//@RestController
@SpringBootApplication
public class App {

	/*
	 * @RequestMapping("/") public String hello(){ return "Hello world!"; }
	 */
	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}
}